package com.lzh.exer;

/*
 * 	设计类Circle计算圆的面积
 */

public class CircleTest {
	public static void main(String[] args) {
		
		Circle c1 = new Circle();
		c1.radius = 1;
		System.out.println(c1.findArea());
		
	}
}
//圆
class Circle{
	//属性
	double radius;
	
	//求圆的面积
	//方式一：
	public double findArea() {
		double area = Math.PI * radius * radius;
		return area;
	}
	
}